package cn.iwit;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;

import cn.iwit.util.ApplicationContextUtils;

@SpringBootApplication
@ComponentScan
@Import({})
//@ImportResource({"classpath*:applicationContext.xml"})
public class Application {
	public static void main(String[] args) {
		 ApplicationContext applicationContext = SpringApplication.run(Application.class, args);
		 //SpringApplication.run("classpath:/META-INF/application-context.xml", args);
		 ApplicationContextUtils.setApplicationContext(applicationContext);
	}
}
